# $Id: PKGBUILD 86512 2013-03-18 12:25:13Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Allan McRae <mcrae_allan@hotmail.com>
# Contributor: François Charette <firmicus ατ gmx δοτ net>

pkgname=perl-html-tree
pkgver=5.03
pkgrel=2
pkgdesc="Make parse trees out of HTML source"
arch=('any')
url="http://search.cpan.org/dist/HTML-Tree"
license=('GPL' 'PerlArtistic')
depends=('perl>=5.10.0' 'perl-html-tagset>=3.02' 'perl-html-parser>=3.46')
makedepends=('perl-test-fatal')
options=('!emptydirs')
source=(http://search.cpan.org/CPAN/authors/id/C/CJ/CJM/HTML-Tree-$pkgver.tar.gz)
md5sums=('d9271d60b872ed6fbe68b2d0fe8c450e')

build() {
  cd  $srcdir/HTML-Tree-$pkgver
  perl Build.PL installdirs=vendor destdir="$pkgdir/"
  perl Build
}

package() {
  cd  $srcdir/HTML-Tree-$pkgver
  perl Build install
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}
